package cn.kongwg.service;

import cn.kongwg.dao.AccountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author kongwg
 * @create 2021-03-06 11:00
 */
@Service
//@Transactional
public class AccountServiceImpl implements AccountService {


    @Autowired
    private AccountDao accountDao;

    @Override
    public void transfer() {

        accountDao.removeM();

        int i = 1 / 0;

        accountDao.addM();
    }


}
